package ua.kratik.seabattle.dao.api;

import java.util.Collection;

import ua.kratik.seabattle.dao.BasicDAO;
import ua.kratik.seabattle.domain.User;

public interface UserDAO extends BasicDAO<User> {

	/**
	 * 
	 * @param email
	 * @param password
	 * @return if parameters are correct returns valid User object with all fields set,
	 * or <code>null</code> otherwise
	 */
	public User validateUser(String email, String password);

	public Collection<User> findUserByEmail(String email);
}
